var buildingjson;

$.ajaxSettings.async = false; 
$.getJSON('jiningbuildings.json', function (geojson) {
// $.getJSON('assets/jiningt.json', function (geojson) {
    buildingjson = geojson;
    buildingjson.features.forEach((element,inx) => {
        element.id = inx;// element.properties.FeatureID
    });
});
var builds = buildingjson.features;
// var builds = buildingjson.features.map(function (feature) {
//     // feature.properties.name = feature.properties.FeatureID;
//     // feature.properties.height = feature.properties.LSG1;
//     return feature;
// });
